<template>
  <div class="shoplist">
      <div class="top">
          <h5>{{title}}<span>{{greentitle}}</span></h5>
          <p>更多</p>
      </div>
      <div class="bottom">
          <Shopsingle v-for="(v,i) in goods" :key="i" :littleimg="v.littleimg" :littletext="v.littletext" :price="v.price"/>
      </div>
  </div>
</template>

<script>
import Shopsingle from '../home/shopsingle.vue'
export default {
    components:{
        Shopsingle
    },
    props:['title','greentitle','goods'],
    created(){
        console.log(this.goods)
    }
}
</script>

<style scoped>
.shoplist{
        width:3.4rem;
        height:2rem;
        margin:auto;
        margin-bottom:0.2rem;
    }
.top{
    width:100%;
    height:0.48rem;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding:0 0.05rem;
}
.top h5{
    font-size:0.16rem;
    line-height: 0.48rem;
}
.top span{
    color:#45b482;
}
.top p{
    font-size:0.12rem;
    line-height: 0.48rem;
    color:gray
}
.bottom{
    width:3.16rem;
    display: flex;
    justify-content: space-between;
    margin:auto
}
.bottom img{
    display: block;
    width:1rem;
    height:1.53rem
}
</style>